<!--
  描述：验收项目详情页
  @author fengxuecai
  @since 2021/11/17 14:19
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: jscss">
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="acceId" th:value="${baseAcceptProject.acceId}"/>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">验收项目类型：</label>
                <div class="layui-input-inline" style="width:300px;">
<!--                    <select name="acceType" id="acceType" lay-verify="required"-->
<!--                            th:value="${baseAcceptProject.acceType}">-->
<!--                        <option value="1" th:selected="${baseAcceptProject.acceType == null || baseAcceptProject.acceType == 1}">工程师验收</option>-->
<!--                        <option value="2" th:selected="${baseAcceptProject.acceType == 2}">用户验收</option>-->
<!--                    </select>-->
                    <input th:disabled="${baseAcceptProject.acceType != null}" type="radio" name="acceType" lay-filter="acceType" value="1" title="工程师验收项目" th:checked="${baseAcceptProject.acceType == null || baseAcceptProject.acceType == 1}" lay-verify="required">
                    <input th:disabled="${baseAcceptProject.acceType != null}" type="radio" name="acceType" lay-filter="acceType" value="2" title="用户验收项目" th:checked="${baseAcceptProject.acceType == 2}" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">验收项目名称：</label>
                <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="acceName" autocomplete="off" class="layui-input"
                           th:value="${baseAcceptProject.acceName}" maxlength="50" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item" id ="referenceValue">
                <label class="layui-form-label layui-form-required">参考值：</label>
                <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="referenceValue" autocomplete="off" class="layui-input"
                           th:value="${baseAcceptProject.referenceValue}" maxlength="50" lay-verify="required">
                </div>
            </div>
            <div class="layui-form-item" id ="selectValue0">
                <label class="layui-form-label layui-form-required">选项值：</label>
                <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="selectValue0" autocomplete="off" class="layui-input"
                           th:value="${selectValue0}" maxlength="50" lay-verify="required">
                </div>
                <input type="radio" name="isNormal" lay-filter="isNormal" value="1" title="正常" th:checked="${isNormal1}">
            </div>
            <div class="layui-form-item" id ="selectValue1">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="selectValue1" autocomplete="off" class="layui-input"
                           th:value="${selectValue1}" maxlength="50" lay-verify="required">
                </div>
                <input type="radio" name="isNormal" lay-filter="isNormal" value="2" title="正常" th:checked="${isNormal2}">
            </div>
            <div class="layui-form-item" id ="selectValue2">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline" style="width:300px;">
                    <input type="text" name="selectValue2" autocomplete="off" class="layui-input"
                           th:value="${selectValue2}" maxlength="50">
                </div>
                <input type="radio" name="isNormal" lay-filter="isNormal" value="3" title="正常" th:checked="${isNormal3}">
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div>
                    <label style="color: #9F9F9F;width: 400px" id="remark">注：选项值最少配两个,最多配三个,且不能重复</label>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">排序：</label>
                <div class="layui-input-inline">
                    <input type="number" name="sort" autocomplete="off" class="layui-input"
                           th:value="${baseAcceptProject.sort}" maxlength="10" lay-verify="sort">
                </div>
                <div>
                    <label style="color: #9F9F9F;width: 400px">排序值越小越靠前展示</label>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                        <button onclick="zmnLayUtil.closeThisIframe(parent,{reloadPage: true})"
                                class="layui-btn layui-btn-primary" id="cancel">取消
                        </button>
                    </div>
                </div>
            </div>

        </form>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        baseAcceptProject: [[${baseAcceptProject}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 212341311122
    }).extend({
        index: "lib/index",
        plat_base_acceptproject_detail: "base/acceptproject/zmn.plat.acceptproject.edit",
    }).use(['index', 'plat_base_acceptproject_detail']);





</script>
</body>
</html>